﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UI.gongwen
{
    public partial class deal : Form
    {
        public int gid;
        public deal()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "" || textBox1.Text == null)
            {
                MessageBox.Show("没写意见");
                return;
            }
            string hk = textBox1.Text;
            DAL.UserServer.Updategongwen(gid, 1, hk);
            this.Close();
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "" || textBox1.Text == null)
            {
                MessageBox.Show("没写意见");
                return;
            }
            string hk = textBox1.Text;
            DAL.UserServer.Updategongwen(gid, 0, hk);
            this.Close();
        }

        private void deal_Load(object sender, EventArgs e)
        {
            textBox2.Text = DAL.UserServer.SelectgwContent(gid);
        }
    }
}
